1.
CD geoip/
wget http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz
gzip-d GeoIP.dat.gz
ls
GeoLiteCity.dat
Other libraries: viewing
http://dev.maxmind.com/zh-hans/geoip/legacy/geolite/
2.
wget
Use GeoIP2 to analyze visitors' IP addresses to obtain geographical location information.
Link: http://blog.csdn.net/johnnycode/article/details/42028841
MaxMind GeoIP2 is widely used to identify locations and other features of Internet users, this
Original link: http://blog.csdn.net/johnnycode/article/details/42028841MaxMind GeoIP2 Services can identify the location and other characteristics of Internet users, including personalized content, fraud detection, advertising targeting, website
Original: https://redislabs.com/ebook/redis-in-action/part-2-core-concepts-2/ Chapter-5-using-redis-for-application-support/5-3-ip-to-city-and-country-lookup/5-3-1- Loading-the-location-tablesFor development data, I downloaded a free IP address from
Rotten mud: awstats is used to analyze nginx logs and awstatsnginx
This document consistsIlanniwebProviding friendship sponsorship, first launchedThe world
For more articles, follow my ilanniweb
Yesterday, nginx logs were cut. For how to cut
Here are a brief outline of the steps needed to install GeoIP Legacy City on Linux/unix. The installation on Windows are similar, just replace the tar command with WINZIP or a similar ZIP program.Step 1–download DatabaseFor GeoIP clients, go to the
This article mainly introduces the use of GeoIP Library instances in php. This article provides code instances subdivided into countries and cities, for more information, see maxmind, which is the provider of the geoip database,
Sample and api
This article mainly introduces the use of GeoIP Library instances in php. This article provides code instances subdivided into countries and cities, for more information, see maxmind, which is the provider of the geoip database,
Sample and api
It should be noted that Maxmind is the provider of the GeoIP database,It also provides sample and API documentation for many languages.For example, PHP, and PHP GeoIP library is very different, including the use of the interface function.The
To use GeoIP, you need to recompile nginx, my system is centos6.5,nginx with Tengine, the required package:GCC, gcc-c++, OpenSSL, Openssl-devel, GeoIP Library, GeoLite Country, GeoLite City, Pcre, Tengine21. Download the required Packageswget http://
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.